package cn.demo.app.fallback;

import cn.demo.app.api.ShowApi;
import cn.ifloat.brick.basic.common.toolkit.Maper;
import cn.ifloat.brick.logger.core.LogKit;
import org.springframework.stereotype.Component;

import java.util.Map;

/**
 * @author: float 2023/7/4 09:46
 */
@Component
public class ShowFailBack implements ShowApi {
    @Override
    public Map<String,String> print(String msg) {
        LogKit.system().info("ShowFailBack.print :"+msg);
        return Maper.<String,String>builder().of("f",msg).get();
    }

    @Override
    public String str(String msg) {
        System.out.println("ShowFailBack.str");
        return msg;
    }
}
